package com.lmb.service.impl;

import com.lmb.bean.RatioData;
import com.lmb.bean.StatisticsCount;
import com.lmb.mapper.StatisticMapper;
import com.lmb.service.StatisticService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;

/**
 * 统计服务实现类
 */
@Service
public class StatisticServiceImpl implements StatisticService {

    @Autowired
    private StatisticMapper statisticMapper;

    @Override
    public List<RatioData> getGenderRatio() {
        return statisticMapper.getGenderRatio();
    }

    @Override
    public List<RatioData> getEmergencyTypeRatio() {
        return statisticMapper.getEmergencyTypeRatio();
    }

    @Override
    public StatisticsCount getBasicCounts() {
        return statisticMapper.getBasicCounts();
    }
}
